#include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;

char aa[205],bb[205];
int a[205],b[205],c[500];


int main()
{
	memset(c,0,sizeof(c));
	
	cin>>aa>>bb;
	int lena=strlen(aa);
	int lenb=strlen(bb);
	
	for (int i=0;i<=lena-1;i++)
		a[lena-i]=aa[i]-'0';
	for (int i=0;i<=lenb-1;i++)
		b[lenb-i]=bb[i]-'0';
	
	for (int i=1;i<=lena;i++)
		for (int j=1;j<=lenb;j++)
		{
			c[i+j-1]+=a[i]*b[j];
			c[i+j]+=c[i+j-1]/10;
			c[i+j-1]%=10;
		}
	
	int lenc=lena+lenb;
	while (c[lenc]==0&&lenc>1) lenc--;
	for (int i=lenc;i>0;i--)
		cout<<c[i];
	
	return 0;
}